package edu.sctu.practice.class02.shilaihong.text.text05;

/**
 * Created by admin on 2015/10/12.
 */
public class Person {
    private static String name;
    private static int age;

    public Person(String name, int age) {
        this.name = name;
        this.age = age;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public int getAge() {
        return age;
    }

    public void disply() {
        System.out.println("姓名：" + name);
        System.out.println("年龄: " + age);
    }


}
